﻿<UserControl x:Class="WPFHexaEditor.Control.HexaEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:WPFHexaEditor.Control"
             mc:Ignorable="d" 
             Height="313" Width="782">
    <Grid SizeChanged="Grid_SizeChanged" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="47*"/>
            <ColumnDefinition Width="21*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="287*"/>
        </Grid.RowDefinitions>

        <StackPanel x:Name="LinesInfoStackPanel" HorizontalAlignment="Left"
                     Width="85" Grid.Row="1"/>

        <!--<ScrollViewer Grid.Row="1" Grid.Column="2" Margin="0" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Auto">
            <StackPanel x:Name="HexDataStackPanel" />
        </ScrollViewer>-->

        <StackPanel x:Name="HexDataStackPanel" Grid.Row="1" Grid.Column="1" Margin="10,0"/>

        <ScrollBar x:Name="VerticalScrollBar" HorizontalAlignment="Right" ValueChanged="VerticalScrollBar_ValueChanged" SmallChange="1" Grid.Column="3" Grid.Row="0" Grid.RowSpan="2"/>
        <StackPanel x:Name="HexHeaderStackPanel" Orientation="Horizontal" Grid.Column="1" Grid.Row="0" Margin="10,0"/>
        <StackPanel x:Name="StringDataStackPanel" Grid.Row="1" Grid.Column="2" Margin="10,0,0,0" HorizontalAlignment="Left" Width="190"/>

    </Grid>
</UserControl>
